#!/bin/sh
echo "Fixing perms"
chmod o=-x /usr/bin/sockstat
chmod o=-x /usr/bin/systat
chmod o=-x /usr/bin/vmstat
chmod o=-x /sbin/*
chmod o=-x /usr/sbin/*
chmod o=-x /usr/bin/dig
chmod o=-x /usr/bin/nslookup
echo "Done"
echo "Fixing perms on /etc"
chmod o=-r /etc/rc.conf
chmod o=-r /etc/fstab
chmod o=-r /etc/motd*
chmod o=-r /etc/defaults
chmod o=-r /etc/hosts.*
echo "Done"
echo "Fixing perms on /var/log"
chmod 644 /var/log/all.log
chmod 644 /var/log/messages.log
echo "Done"
echo "End stupid lockdown script"

